package com.google.code.cisx.client.gadgets.deprecated;

import com.google.code.cisx.client.model.Gadget;
import com.google.code.cisx.client.model.GadgetClass;
import com.google.code.cisx.client.view.FlashPanel;

public class DiceWarsGadget extends Gadget {

  public static class Class extends GadgetClass {
    public Class() {
      super("DiceWars", true);
    }

    public Gadget newGadget() {
      return new DiceWarsGadget(this);
    }
  }

  private FlashPanel flash = new FlashPanel();

  protected DiceWarsGadget(Class c) {
    super(c);
    initWidget(flash);
    setStyleName("DiceWars");
    refresh();
  }

  public void refresh() {
    flash.setURL("http://www.gamedesign.jp/flash/dice/dice.swf");
  }
}
